package com.ybwh.springboot2.uidgen.model.po;

import com.alibaba.fastjson.JSON;
import com.gitee.fastmybatis.annotation.Pk;
import com.gitee.fastmybatis.annotation.PkStrategy;
import com.gitee.fastmybatis.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;



/**
* 百度UID Generator 分布式id生成器
* @author Fan Beibei
* @date   2023-04-15 20:53:44
*/
@Data
@Table(name = "worker_node",pk = @Pk(name = "ID", strategy = PkStrategy.NONE))
public class WorkerNode {

	/**
	* auto increment id
	*/
	@ApiModelProperty(value="auto increment id")
	private Long id;
	/**
	* host name
	*/
	@ApiModelProperty(value="host name")
	private String hostName;
	/**
	* port
	*/
	@ApiModelProperty(value="port")
	private String port;
	/**
	* node type: ACTUAL or CONTAINER
	*/
	@ApiModelProperty(value="node type: ACTUAL or CONTAINER")
	private Integer type;
	/**
	* launch date
	*/
	@ApiModelProperty(value="launch date")
	private Date launchDate;
	/**
	* modified time
	*/
	@ApiModelProperty(value="modified time")
	private Date modified;
	/**
	* created time
	*/
	@ApiModelProperty(value="created time")
	private Date created;

	@Override
	public String toString() {
	return JSON.toJSONString(this);
	}

}